package com.biz.primus.ms.sms;

import com.biz.primus.ms.base.config.BaseConfiguration;
import com.biz.primus.ms.sms.stream.SmsSendSink;
import com.biz.primus.ms.sms.stream.SmsSendSource;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;

/**
 * MiscServiceApplication
 *
 * @author JKLiues
 * @date 2017/10/26
 */
@SpringCloudApplication
@Import({
        BaseConfiguration.class,
})
@EnableBinding({
        SmsSendSource.class,
        SmsSendSink.class
})
public class MiscServiceApplication {


    public static void main(String[] args) {
        SpringApplicationBuilder springApplicationBuilder = new SpringApplicationBuilder(MiscServiceApplication.class);
        springApplicationBuilder.web(true).run(args);
    }


}
